package com.castle.fortress.admin.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.system.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 系统角色
 * @author castle
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 查询用户对应的角色
     * @param userId
     * @return
     */
    List<SysRole> queryListByUser(@Param("userId") Long userId);
}
